package com.one.service;


import com.one.annotation.RequestUser;
import com.one.bean.Management;
import com.one.bean.Product;
import com.one.bean.Ticket;
import com.one.util.RequestReturn;
import com.one.vo.UserVo;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.math.BigDecimal;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@FeignClient(name = "street-ticket")
public interface IntegralAndTicketService {

    @GetMapping("/Integral/updateIntegral")
    RequestReturn<HashMap<String,Object>> updateUserTicket(@RequestParam("payment") Integer payment);

    @GetMapping("/Ticket/selectTicket")
    RequestReturn<List<Ticket>> selectAllTicket();

    @GetMapping("/Rush/checkIn")
    RequestReturn<String> userCheckIn();

    @GetMapping("/Rush/selectUserCheckIn")
    RequestReturn<List<Object>> selectUserCheckIn();

    @GetMapping("/Ticket/selectTicketById")
    RequestReturn<Ticket> selectTicketById(@RequestParam("ticketId") Integer ticketId);

    @GetMapping("/Ticket/coupons")
    RequestReturn<Map<String,Object>> userCoupons(@RequestParam("ticketId") Integer ticketId);

    @GetMapping("/Ticket/selectUserTicket")
    RequestReturn<HashMap<String, Object>> selectUserTicket();

    @GetMapping("/Rush/selectBuy")
    public RequestReturn<List<Product>> selectBuyingGoods();

    @PostMapping("/Rush/addManagement")
    public RequestReturn<Object> addManagement(@RequestBody Management management);


}
